#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include "project.h"
#include <widget2.h>
#include <widget3.h>
#include <widget5.h>
#include <widget6.h>

QT_BEGIN_NAMESPACE
namespace Ui {
class Widget;
}
QT_END_NAMESPACE

class Widget1;
class Widget2;
class Widget3;
class Widget4;
class Widget5;
class Widget6;

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(FlightBookingSystem& system,QWidget *parent = nullptr);
    ~Widget();

    Widget1 *page1=nullptr;
    Widget2 *page2=nullptr;
    Widget3 *page3=nullptr;
    Widget4 *page4=nullptr;
    Widget5 *page5=nullptr;
    Widget6 *page6=nullptr;

    FlightBookingSystem& bookingSystem;

private slots:

    void on_pushButton1_clicked();
    void comeBackToPrev1();
    void on_pushButton2_clicked();
    void comeBackToPrev2();
    void on_pushButton3_clicked();
    void comeBackToPrev3();
    void on_pushButton4_clicked();
    void comeBackToPrev4();
    void on_pushButton5_clicked();
    void comeBackToPrev5();
    void on_pushButton6_clicked();
    void comeBackToPrev1_1();
    void comeBackToPrev2_3();
    void comeBackToPrev2_4_1();
    void comeBackToPrev2_4();
    void comeBackToPrev2_5();
    void comeBackToPrev3_1();
    void comeBackToPrev2_4_2();
    void comeBackToPrev3_2();
    void comeBackToPrev4_2();

private:
    Ui::Widget *ui;
};
#endif // WIDGET_H
